package com.wgod.demo.business.mapper;

import tk.mybatis.mapper.common.Mapper;
import org.apache.ibatis.annotations.Param;

import com.wgod.demo.business.entity.LogEntity;

import java.util.List;

/**
 * Created by WGod on 2018/4/29.
 */
public interface LogMapper extends Mapper<LogEntity> {

    /**
     * 添加日志
     * @param logEntity
     * @return
     */
    int addLog(LogEntity logEntity);

    /**
     * 删除日志
     * @param id
     * @return
     */
    int deleteLogById(@Param("id") Integer id);

    /**
     * 获取日志
     * @return
     */
    List<LogEntity> getLogs();
}
